--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit a686b8f3b752f9538a82c4b922c8c25c180538f1
Parents : c99ce2b
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-07-24T00:05:25+02:00
Cleaned up annoying node auto-add on peer trusted. What was I thinking?
Changes
Diff
diff --git a/nomadnet/Directory.py b/nomadnet/Directory.py
index f850909..ea2f21e 100644
--- a/nomadnet/Directory.py
+++ b/nomadnet/Directory.py
@@ -195,11 +195,11 @@ class Directory:
self._node_announces.insert(0, (timestamp, source_hash, app_data, "node"))
self._clean_node_announces()
- if self.trust_level(associated_peer) == DirectoryEntry.TRUSTED:
- existing_entry = self.find(source_hash)
- if not existing_entry:
- node_entry = DirectoryEntry(source_hash, display_name=app_data.decode("utf-8"), trust_level=DirectoryEntry.TRUSTED, hosts_node=True)
- self.remember(node_entry)
+ # if self.trust_level(associated_peer) == DirectoryEntry.TRUSTED:
+ # existing_entry = self.find(source_hash)
+ # if not existing_entry:
+ # node_entry = DirectoryEntry(source_hash, display_name=app_data.decode("utf-8"), trust_level=DirectoryEntry.TRUSTED, hosts_node=True)
+ # self.remember(node_entry)
if hasattr(self.app.ui, "main_display"):
self.app.ui.main_display.sub_displays.network_display.directory_change_callback()
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────